import { Controller, Get, Query } from '@nestjs/common'
import { LoggerService } from './logger.service'
import { KeywordPageQuery } from 'types/global'

@Controller('logger')
export class LoggerController {
  constructor(private readonly loggerService: LoggerService) {}

  @Get()
  findAll(
    @Query()
    queryInfo: KeywordPageQuery
  ) {
    return this.loggerService.findAll(queryInfo)
  }
}
